package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.Help;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HelpMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Help record);

    int insertSelective(Help record);

    Help selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Help record);

    int updateByPrimaryKeyWithBLOBs(Help record);

    int updateByPrimaryKey(Help record);

    List<Map<String,Object>> listHelp(@Param("start") Integer start, @Param("end") Integer size, @Param("type") String type);

    Integer amountHelp(@Param("type") String type);

    List<Map<String,Object>> getHelpByCateId(@Param("cateId") String id);
}